package com.biz.service.base;


import com.biz.model.Hmodel.TorderMain;
import com.biz.model.Pmodel.PorderMain;
import com.biz.model.Pmodel.basic.PorderSend;
import com.biz.model.Pmodel.basic.Ppics;
import com.framework.model.Pager;
import com.framework.model.Paging;

import java.util.List;
import java.util.Map;

/*************************************************************************
* create by lzq
 *
* 文件名称 ：OrderServiceI.java 描述说明 ：
*
* 版权信息 : Copyright (c) 2015 扬州北斗软件有限公司
**************************************************************************/
public interface OrderServiceI extends BaseServiceI<TorderMain> {

    /**
     * 获取全部订单
     * @return
     * @throws Exception
     */
    Paging queryOrders(Map map)throws Exception;
    Pager<Map> queryWineApplys(Pager pager) throws Exception;
    List<PorderMain> exportExcel_shopDeMain(Map<String, Map<String, Object>> maps)throws Exception;
    /**
     * 根据id获取订单信息
     * @param id
     * @param detailId
     * @return
     * @throws Exception
     */
    Map<String, Object> findOrderInfoById(String id, String detailId)throws Exception;

    Map<String,Object> findWineApplyById(String id)throws Exception;
    void updateApplyState(String ids,String state,String approveMsg) throws Exception;
    List<PorderSend> orderSend(String orderid) throws Exception;

    boolean saveOrderSend(String orderid, int sendType, String logisticsCompany, String sendCode)throws Exception;
    boolean updateBoolOrderState(String orderid, int state) throws Exception;
    String findOpenId(String orderid)throws Exception;
    PorderSend findPorderSend(String orderid)throws Exception;
    //关闭订单
    Map closeOrder(String orderMainId,String userCode)throws Exception;
    //查询退款列表
    Paging queryRefundOrders(Map map)throws Exception;
    //修改订单状态
    boolean updateStates(String orderid, int orderidstate, String id, String state, String userId, String remarks)throws Exception;

    Map<String,Object> updatesubmitToRefund(String orderid, String userId, String id, int paymentRoute, String remarks)throws Exception;

    Map<String,Object> orderRefund(String orderId)throws Exception;

    List<Ppics> orderRefundPic(String orderId)throws Exception;
}
